#ifndef _COM_OBJ_DEF_H_
#define _COM_OBJ_DEF_H_

#include "stdint.h"
#include "com_def.h"

#ifdef   _COM_OBJ_MODULE_
#define  COM_EXT
#else
#define  COM_EXT  extern
#endif

typedef struct 
{
    //obj 01
    com_obj_type obj01;
	com_obj_type obj02;
	com_obj_type obj03;
	com_obj_type obj05;
	com_obj_type obj06;
	com_obj_type obj08;
} com_obj_list_type;

COM_EXT com_obj_list_type com;

void com00_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com01_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com02_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com03_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com04_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com05_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com06_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com07_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);
void com08_Init(uint8_t comMode, uint32_t ulBaudRate, com_parity_type eParity);


#undef COM_EXT

#endif /* _COM_OBJ_DEF_H_ */
